package com.wjm.blog.common.enums;

/**
 * @Description: 返回信息枚举
 * @Author: Ailos
 * @Date: 2020/4/20 10:54
 * @Version: 1.0
 */
public enum ResponseEnum {
    // 公共枚举
    SUCCESS("200", "RES.SUCCESS"),
    ERROR("01", "RES.ERROR"),
    INTERNAL_SERVER_ERROR("500", "RES.INTERNAL_SERVER_ERROR"),

    // 参数校验异常
    PARAM_NOT_NULL("10", "参数不能位空！");

    /**
     * 编码
     */
    private String code;

    /**
     * 信息
     */
    private String message;

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }

    ResponseEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }
}
